package freespiritsocial.io.user.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.PostPojo
import freespiritsocial.io.user.databinding.ItemFollowedPostBinding
import java.util.*

/**
 * 首页帖子适配器
 */
class FollowedPostAdapter(
    data: ArrayList<PostPojo> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_followed_post
):
    BaseQuickAdapter<PostPojo,BaseDataBindingHolder<ItemFollowedPostBinding>>(layoutResIdRes,data) {

    override fun convert(holder: BaseDataBindingHolder<ItemFollowedPostBinding>,item: PostPojo) = with(holder.dataBinding) {
        this?.data = item
    }
}